﻿#region Using Directives

using System;

using SharePointStu.SharePoint.General;

#endregion Using Directives

namespace SharePointStu.ItemAuditing
{
	/// <summary>
	/// Invalid SPListItem identifier exception class.
	/// </summary>
	public class InvalidListItemIdentifierException : BaseException
    {
        #region Constructors and Destructors

        /// <summary>
        /// Initialises a new instance of the <see cref="T:SharePointStu.ItemAuditing.InvalidListItemIdentifierException"/> class.
		/// </summary>
        /// <param name="webId">Identifier for the parent SPWeb object.</param>
        /// <param name="listId">Identifier for the parent SPList object.</param>
        /// <param name="listItemId">Identifier for the invalid SPListItem object.</param>
        /// <param name="auditType">A <see cref="T:SharePointStu.ItemAuditing.Controls.AuditLogView.AuditTypes"/> object.</param>
        public InvalidListItemIdentifierException(Guid webId, Guid listId, int listItemId, Controls.AuditLogView.AuditTypes auditType)
		{
            string s = Resources.Exceptions.InvalidListItemIdentifierException;
            _msg = string.Format(s, webId, listId, listItemId, auditType);
		}

		#endregion Constructors and Destructors
	}
}
